<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/axios.js"></script>
</head>
<body>
<script type="module">

    // import axios from './模拟axios.js';

    const r1 = axios({
        url: 'http://shenxiaoxu.com:3000/scoreList',
        params : {
            age : 12
        }
    })

    const r2 = axios({
        url: 'http://shenxiaoxu.com:3000/scoreList',
        params : {
            age : 12
        }
    })

    // axios.all([r1,r2])
    //spread 将axios的成功值 , 拆分并传递给里面的回调函数
    axios.all([r1,r2]).then(axios.spread(function (s1,s2){
        console.log(s1.data,s2.data)
    }))



</script>
</body>
</html>